<template>
  <div class="success">
    <div class="icon"><img src="../../assets/img/success.png" alt="" /></div>
    <div class="title">操作成功</div>
    <a class="submit" @click="view">查看报名表</a>
  </div>
</template>
<script setup>
import { useRouter, useRoute } from "vue-router";

const router = useRouter();
const route = useRoute();

const submit = () => {
  router.push({
    path: "/interview",
    query: {
      checkin_id: route.query.checkin_id,
      checkin_no: route.query.checkin_no,
      name: route.query.name,
    },
  });
};

const view = () => {
  router.push({
    path: "/interview/view",
    query: {
      checkin_id: route.query.checkin_id,
    },
  });
};
</script>